//
//  NearTableViewCell.m
//  hai游～
//
//  Created by jakf_17 on 15/5/26.
//  Copyright (c) 2015年 jakf_17. All rights reserved.
//

#import "NearTableViewCell.h"

@implementation NearTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMyCell];
    }
    return self;
}

- (void)createMyCell
{
    UIView *cellView = [[UIView alloc] initWithFrame:CGRectMake(20, 10, [[UIScreen mainScreen] bounds].size.width - 40, 100)];
    cellView.backgroundColor = [UIColor whiteColor];
    cellView.layer.cornerRadius = 6;
    [self.contentView addSubview:cellView];
    [cellView release];
    self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 110, 80)];
    [cellView addSubview:_showImage];
    [_showImage release];
    
    self.titleName = [[UILabel alloc] initWithFrame:CGRectMake(130, 13, 200, 20)];
    [cellView addSubview:_titleName];
    [_titleName release];
    _titleName.font = [UIFont boldSystemFontOfSize:16];
    
    self.contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 38, [[UIScreen mainScreen] bounds].size.width - 135, 30)];
    self.contentLabel.numberOfLines = 0;
    self.contentLabel.font = [UIFont systemFontOfSize:12];
    [cellView addSubview:self.contentLabel];
    [_contentLabel release];
    
    self.distanceLabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 70, 100, 20)];
    [cellView addSubview:_distanceLabel];
    [_distanceLabel release];
    
    
    self.peopleCountLabel = [[UILabel alloc] initWithFrame:CGRectMake(230, 70, 100, 20)];
    [cellView addSubview:_peopleCountLabel];
    [_peopleCountLabel release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
